package com.zr.service.order;

import com.zr.vo.order.OrderGoods;
import java.util.Map;

/**
 * 订单货物处理
 * @author huangguilong
 */
public interface OrderGoodsService {

    /**
     * 查询货物列表
     * @param goodsOrderId
     * @return Map<String, Object>
     * @author huangguilong
     */
    Map<String, Object> getGoodsByOrderId(String goodsOrderId);

    /**
     * 新增订单货物
     * @param orderGoods
     * @return int
     * @author huangguilong
     */
    int add(OrderGoods orderGoods);

    /**
     * 编辑订单货物
     * @param orderGoods
     * @return int
     * @author huangguilong
     */
    int edit(OrderGoods orderGoods);

    /**
     * 删除订单货物
     * @param orderGoods
     * @return int
     * @author huangguilong
     */
    int remove(OrderGoods orderGoods);

    /**
     * 删除所有未生成委托订单的货物信息
     * @return int
     * @author huangguilong
     */
    int deleteAllByOrderId();
}
